﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NiDingJHCC.aspx.cs" Inherits="Web.Pages.YongShui.JiHuaGL.NiDingJHCC" Theme="Default" ValidateRequest="false" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <script src="../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <script type="text/javascript">
        function OpenCuoWuXX() {
            openCenter("/Pages/YongShui/3.JihuaGL/NiDingJHCC_Browse.aspx", "800px", "480px");
        }

        function checkTimeRate(s1, s2) {
            var fNum = (GetInt(s1) * 1.00) / GetInt(s2);
            return fNum < 0.2 || fNum > 5;
        }

        function txtMChange(s) {
            var iVal = GetInt(s);
            if (0 == iVal) {
                s.Focus();
                alert("计划不能为0！");
                return;
            }
            if (ChkShuRu.GetChecked()) {
                s.SetText(s.GetText() * 100);
            }
            if (checkTimeRate(s, txtM1) || checkTimeRate(s, txtM2) || checkTimeRate(s, txtM3) || checkTimeRate(s, txtM4) || checkTimeRate(s, txtM5) || checkTimeRate(s, txtM6)
			 || checkTimeRate(s, txtM7) || checkTimeRate(s, txtM8) || checkTimeRate(s, txtM9) || checkTimeRate(s, txtM10) || checkTimeRate(s, txtM11) || checkTimeRate(s, txtM12)) {
                if (!confirm("与最大（或最小）计划量的倍率超过5倍，请确认是否输入正确。")) {
                    s.Focus();
                    return;
                }
            }
            recountSum();
        }

        function recountSum() {
            var total = GetNum(txtM1) + GetNum(txtM2) + GetNum(txtM3) + GetNum(txtM4) + GetNum(txtM5) + GetNum(txtM6) +
           GetNum(txtM7) + GetNum(txtM8) + GetNum(txtM9) + GetNum(txtM10) + GetNum(txtM11) + GetNum(txtM12);
            txtQuanNian.SetText(total);
        }


        //全年相同
        function QuanNianXT() {
            if (txtM1.GetText() == '' || isNaN(parseInt(txtM1.GetText())) ) {
                alert("1月水量格式错误！");
                txtM1.Focus();
                txtM1.SelectAll();
            }
            else {
                txtM2.SetText(parseInt(txtM1.GetText()));
                txtM3.SetText(parseInt(txtM1.GetText()));
                txtM4.SetText(parseInt(txtM1.GetText()));
                txtM5.SetText(parseInt(txtM1.GetText()));
                txtM6.SetText(parseInt(txtM1.GetText()));
                txtM7.SetText(parseInt(txtM1.GetText()));
                txtM8.SetText(parseInt(txtM1.GetText()));
                txtM9.SetText(parseInt(txtM1.GetText()));
                txtM10.SetText(parseInt(txtM1.GetText()));
                txtM11.SetText(parseInt(txtM1.GetText()));
                txtM12.SetText(parseInt(txtM1.GetText()));
                recountSum();
            }
        }
        //错误检查前验证
        function CheckVlidate() {
           // LoadPanel.Show();
            ASPxCallback1.PerformCallback("CheckVlidate");
        }

        //保存
        function Save() {
            var arr = new Array(txtM1.GetText(), txtM2.GetText(), txtM3.GetText(), txtM4.GetText(), txtM5.GetText(), txtM6.GetText(),
                 txtM7.GetText(), txtM8.GetText(), txtM9.GetText(), txtM10.GetText(), txtM11.GetText(), txtM12.GetText());
            //alert(arr);

            for (var i = 0; i < arr.length; i++) {
                if (arr[i] == '') {
                    alert('有水量为空的月份，请检查');
                    return;
                }
            }

            var num = 0;
            for (var i = 1; i < arr.Length; i++) {
                var this_value = arr[i];
                var last_value = arr[i - 1];
                if (last_value == 0 || this_value == 0) {
                    num = 0;
                    break;
                }
                else if (last_value != 0 && this_value != 0) {
                    num = (this_value * 1.00) / last_value;
                    if (num < 0.2 || num > 5) {
                        break;
                    }
                }
            }
            ASPxCallback1.PerformCallback("save");

            //alert(num);
            //if (num >= 0.2 && num <= 5) {
            //    ASPxCallback1.PerformCallback("save");
            //}
            //else {
            //    if (confirm("计划用水量存在不合理数据，是否继续？")) {
            //        ASPxCallback1.PerformCallback("save");
            //    }
            //}
        }

        function QueryDate() {
            var yhh = txtYongHuH.GetText();
            if (yhh!='') {
                hdCollection.Set("yhh", yhh);
                ASPxCallback1.PerformCallback("setinfo");
                //btnHFYJH.SetEnabled(true);
                //btnQuanNianXT.SetEnabled(true);
                //btnSave.SetEnabled(true);
                //btnCancel.SetEnabled(true);
            }
            else {
                alert('请先输入用户号');
                txtYongHuH.Focus();
                txtYongHuH.SelectAll();
            }
            
        }

        function CancelMod() {
            ASPxCallback1.PerformCallback("cancel");
        }

       //编辑
        function display(op, id) {
            //hdCollection.Set("yhh", gvChaCuoJC.GetRowKey(gvChaCuoJC.GetFocusedRowIndex()));
            hdCollection.Set("yhh",id);
            if (op == "edit") {
                ASPxCallback1.PerformCallback("setinfo");
                btnHFYJH.SetEnabled(true);
                btnQuanNianXT.SetEnabled(true);
                btnSave.SetEnabled(true);
                btnCancel.SetEnabled(true);
            }
        }

        function setStatus(isEdit) {
            btnHFYJH.SetEnabled(isEdit);
            btnQuanNianXT.SetEnabled(isEdit);
            btnSave.SetEnabled(isEdit);
            btnCancel.SetEnabled(isEdit);
            txtYongHuH.SetEnabled(!isEdit);
            if (!isEdit) {
                txtYongHuH.Focus();
                txtYongHuH.SelectAll();
            } else {
                txtM1.Focus();
                txtM1.SelectAll();
            }
        }

        //恢复原计划
        function HFYJH() {
            hdCollection.Set("yhh", txtYongHuH.GetText());
            hdCollection.Set("year", txtNian.GetText());
            ASPxCallback1.PerformCallback("hfyjh");
        }

        //后台回掉
        function ASPxCallback1Complete(rs) {
            var arr = rs.split('|');
            var type = arr[0];
            var state = arr[1];
            if (type == "save") {
                setStatus(false);
            }
            else if (type == "CheckVlidate") {
                if (arr[2] == "false") {
                    alert(arr[3]);
                }
                else if (arr[2] == "true") {
                    alert(arr[3]);
                    CuoWuJL.SetText("共有" + arr[4] + "条错误记录 ,");
                   // ZongJiLu.SetText("共有" + arr[5] + "条总记录");
                }
                else if (arr[2] == "succ") {
                    //alert(arr[3]);
                    //alert(arr[4]);
                    //debugger;
                    CuoWuJL.SetText("共有" + arr[3] + "条错误记录 ,");
                   // ZongJiLu.SetText("共有" + arr[4] + "条总记录");
                    gvChaCuoJC.PerformCallback();
                    //gvXiangXiXX.PerformCallback();
                }
            }
            else if (type == "QueryDate") {
                if (arr[2] == "yonghutrue") {
                    //gvXiangXiXX.PerformCallback();
                    //将查询的数据直接赋给输入框，待定
                }
                else {
                    alert("查询不到该用户信息");
                }
            }
            else if (type == "setinfo" || type == "cancel") {
                if (arr[2] == "false") {
                    alert(arr[3]);
                } else {
                    setStatus(type == "setinfo");

                    txtYongHuH.SetText(arr[2]);
                    txtYongHuM.SetText(arr[3]);
                    txtJuHao.SetText(arr[4]);
                    txtJuHao2.SetText(arr[5]);
                    txtGongSiM.SetText(arr[6]);
                    txtGongSiM2.SetText(arr[7]);
                    txtM1.SetText(arr[8])
                    txtM2.SetText(arr[9])
                    txtM3.SetText(arr[10])
                    txtM4.SetText(arr[11])
                    txtM5.SetText(arr[12])
                    txtM6.SetText(arr[13])
                    txtM7.SetText(arr[14])
                    txtM8.SetText(arr[15])
                    txtM9.SetText(arr[16])
                    txtM10.SetText(arr[17])
                    txtM11.SetText(arr[18])
                    txtM12.SetText(arr[19])
                    recountSum();
                    listCover(true, "gridTab2");
                }
            }
            else if (type == "hfyjh") {
                txtM1.SetText(arr[2])
                txtM2.SetText(arr[3])
                txtM3.SetText(arr[4])
                txtM4.SetText(arr[5])
                txtM5.SetText(arr[6])
                txtM6.SetText(arr[7])
                txtM7.SetText(arr[8])
                txtM8.SetText(arr[9])
                txtM9.SetText(arr[10])
                txtM10.SetText(arr[11])
                txtM11.SetText(arr[12])
                txtM12.SetText(arr[13])
                txtM1.Focus();
                recountSum();
            }
           
        }

        
       
    </script>
    <style type="text/css">
        .LargeFont {
            font-size: x-large;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            拟定计划查错
        </div>
        <div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
            <dx:ASPxLoadingPanel ID="ASPxLoadingPanel1" ClientInstanceName="LoadPanel" runat="server" ContainerElementID="gvYongHuXX"></dx:ASPxLoadingPanel>
            <%--<input type="hidden" id="hidYonghuh" runat="server" value="1" />--%>
        </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="width: 100%;">
                    <table>
                        <tr>
                            <td>年：</td>
                            <td>
                                <dx:ASPxTextBox ID="txtNian" ClientInstanceName="txtNian" Width="50%" runat="server"  ClientEnabled="false">
                                </dx:ASPxTextBox>
                            </td>
                            <%-- <td style="white-space: nowrap; width:70px;">用户号：</td>
                                                <td style="white-space: nowrap; width:70px;float:left;">
                                                    <dx:ASPxTextBox runat="server" ID="txtYonghuh2" Width="70px" ClientInstanceName="txtYonghuh2">
                                                        <ClientSideEvents  KeyPress="function(s,e){if (event.keyCode == 13) { QueryDate(); };}"/>
                                                    </dx:ASPxTextBox>
                                                </td> --%>
                            <td style="width: 50px;">&nbsp;</td>
                            <td style="width: 150px;">
                                <dx:ASPxLabel runat="server" ID="CuoWuJL" ClientInstanceName="CuoWuJL" ForeColor="Blue" Text="共有0条错误记录 ,"></dx:ASPxLabel>
                            </td>
                           <%-- <td style="width: 150px;">
                                <dx:ASPxLabel runat="server" ID="ZongJiLu" ClientInstanceName="ZongJiLu" ForeColor="Blue" Text="共有0条总记录 "></dx:ASPxLabel>
                            </td>--%>

                            <td style="text-align: right;">

                                <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在执行错误检查"></dx:ASPxLoadingPanel>
                                <dx:ASPxButton ID="btnCheck1" runat="server" Text="错误检查" AutoPostBack="false" UseSubmitBehavior="false">
                                    <ClientSideEvents Click="function(s, e) {CheckVlidate();}" />
                                </dx:ASPxButton>
                                <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL" UseSubmitBehavior="false" AutoPostBack="false">
                                    <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                </dx:ASPxButton>
                                <dx:ASPxButton ID="btnLiuLan" runat="server" Text="浏览" ClientSideEvents-Click="function(s,e){OpenCuoWuXX();}" ClientInstanceName="btnLiuLan"
                                    UseSubmitBehavior="false" ClientVisible="true" AutoPostBack="false">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <dx:ASPxGridView ID="gvChaCuoJC" ClientInstanceName="gvChaCuoJC" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH" SettingsBehavior-AllowSort="true"
                        ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true" OnCustomCallback="gvChaCuoJC_CustomCallback">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户编号" Width="10%">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="S_MEMO" Caption="备注" Width="90%">
                            </dx:GridViewDataTextColumn>
                            <%--<dx:GridViewDataTextColumn  Width="6%">
                                                    <DataItemTemplate>
                                                      <a  onclick="edit('<%#Eval("S_YONGHUH")%>')">修改</a>
                                                    </DataItemTemplate>
                                                </dx:GridViewDataTextColumn>--%>
                            <dx:GridViewDataTextColumn Width="5%">
                                <DataItemTemplate>
                                    <a href="javascript:void(0);" onclick="display('edit','<%#Eval("S_YONGHUH")%>')">修改</a>
                                </DataItemTemplate>
                            </dx:GridViewDataTextColumn>
                        </Columns>

                        <Settings VerticalScrollableHeight="200" VerticalScrollBarMode="Auto" HorizontalScrollBarMode="Auto" />
                        <SettingsPager Mode="EndlessPaging" PageSize="100" />
                        <Settings ShowFooter="True" />
                        <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                        <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                    </dx:ASPxGridView>
                </div>

                <div id="XiuGai" style="width:98%;">
                    <div id="GridViewContentTable" style="display: block;">
                        <br />
                        <div class="tabletitle1" align="center">
                            <asp:Label runat="server" ID="lblOperateTip">修改</asp:Label>
                        </div>
                        <table style="width: 98%;line-height:40px;margin:auto;">
                            <tr style="height: 30px">
                                <td style="width: 10%; text-align: right">用户号：</td>
                                <td style="width: 8%" align="left">
                                    <dx:ASPxTextBox ID="txtYongHuH" Width="90%" runat="server" ClientInstanceName="txtYongHuH" AutoPostBack="false">
                                        <ClientSideEvents KeyPress="function(s,e){if (event.keyCode == 13) { QueryDate(); }}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td></td>
                                <td style="width: 10%; text-align: right">用户名：</td>
                                <td style="width: 20%" align="left" colspan="2">
                                    <dx:ASPxTextBox ID="txtYongHuM" Width="80%" runat="server" ClientInstanceName="txtYongHuM" ReadOnly="True" Font-Size="X-Large" CssClass="LargeFont" Font-Bold="True">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                           <tr style="height: 30px">
                                <td style="width: 10%; text-align: right">局号：</td>
                                <td style="width: 8%" align="left">
                                    <dx:ASPxTextBox ID="txtJuHao" Width="90%" runat="server" ClientEnabled="false" ClientInstanceName="txtJuHao">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 20%" align="left">
                                    <dx:ASPxTextBox ID="txtJuHao2" runat="server" ClientEnabled="false" ClientInstanceName="txtJuHao2">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 10%; text-align: right">公司号：</td>
                                <td style="width: 8%" align="left">
                                    <dx:ASPxTextBox ID="txtGongSiM" Width="90%" runat="server" ClientEnabled="false" ClientInstanceName="txtGongSiM">
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 20%" align="left">
                                    <dx:ASPxTextBox ID="txtGongSiM2" runat="server" ClientEnabled="false" ClientInstanceName="txtGongSiM2">
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                        </table>
                        <table id="yuefen" style="width: 98%;margin:auto; height:110px; border: 1px solid #5aa0a3;line-height:40px;">
                            <tr>
                                <td colspan="8"></td>
                            </tr>
                            <tr>
                                <td style="width: 5%; text-align: right;">1月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM1" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM1">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM2);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right;">4月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM4" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM4">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM5);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right;">7月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM7" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM7">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM8);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">10月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM10" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM10">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM11);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 5%; text-align: right">2月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM2" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM2">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM3);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">5月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM5" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM5">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM6);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">8月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM8" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM8">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM9);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">11月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM11" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM11">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM12);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 5%; text-align: right">3月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM3" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM3">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM4);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">6月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM6" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM6">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM7);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">9月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM9" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM9">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(txtM10);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td style="width: 5%; text-align: right">12月：</td>
                                <td style="width: 20%; text-align: right;">
                                    <dx:ASPxTextBox ID="txtM12" runat="server" HorizontalAlign="Right" Width="60%" MaxLength="8" ClientInstanceName="txtM12">
                                        <ClientSideEvents KeyPress="function(s,e){OnKeyNext(btnSave);}" TextChanged="function(s,e){txtMChange(s);}" LostFocus="function(s,e){LostFocus(s);}" GotFocus="function(s,e){GetFocus(s);}" />
                                    </dx:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="8"></td>
                            </tr>
                        </table>
                        <div style="width: 98%;margin:auto; height: 20px;line-height:40px;">
                            <div style="float: left; width: 200px;">
                                <dx:ASPxCheckBox Checked="true" ID="ChkShuRu" runat="server" Text="百立方米输入" Width="80%" ClientInstanceName="ChkShuRu">
                                    <ClientSideEvents />
                                    <%--CheckedChanged="function(s,e){GetCheckBoxValue(s,e);}"--%>
                                </dx:ASPxCheckBox>
                            </div>
                            <div style="float: right; width: 200px;">
                                <table>
                                    <tr>
                                        <td style=""><span>全年：</span></td>
                                        <td>
                                            <dx:ASPxTextBox Font-Bold="true" ID="txtQuanNian" runat="server" MaxLength="10" HorizontalAlign="Right" Width="80%" ClientInstanceName="txtQuanNian" ReadOnly="True">
                                            </dx:ASPxTextBox>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                        <table id="Table2" runat="server" style="width: 98%;margin:auto;">
                            <tr>
                                <td style="text-align: right;">
                                    <hr />
                                     <dx:ASPxButton ID="btnHFYJH" ClientInstanceName="btnHFYJH" runat="server" Text="恢复原计划" AutoPostBack="false" UseSubmitBehavior="false" ClientEnabled="false">
                                        <ClientSideEvents Click="function(s,e){HFYJH();}" />
                                    </dx:ASPxButton> 
                                    <dx:ASPxButton ID="btnQuanNianXT" ClientInstanceName="btnQuanNianXT" runat="server" Text="全年相同" AutoPostBack="false" UseSubmitBehavior="false" ClientEnabled="false">
                                        <ClientSideEvents Click="function(s,e){QuanNianXT();}" />
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnSave" ClientInstanceName="btnSave" runat="server" Text="保存"  AutoPostBack="false" UseSubmitBehavior="false" ClientEnabled="false">
                                        <ClientSideEvents  Click="function(s,e){Save();}"/>
                                    </dx:ASPxButton>
                                    <dx:ASPxButton ID="btnCancel" ClientInstanceName="btnCancel" runat="server" Text="放弃" UseSubmitBehavior="false" AutoPostBack="false" ClientEnabled="false">
                                        <ClientSideEvents  Click="function(s,e){CancelMod();}"/>
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
              
            </ContentTemplate>

        </asp:UpdatePanel>
        
         <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>  
        
    </form>
</body>
</html>
